﻿using UnityEngine;

namespace Combat
{
    public class SingleBulletLauncher : MonoBehaviour, ILauncher
    {
        [SerializeField] private BulletData bulletData;
        

        public void Fire(Vector3 muzzlePosition, Vector3 atDirection, Vector3 atPosition, Team team)
        {
            BulletsPool.Instance.CreateBullet(team, bulletData, muzzlePosition, atDirection);
        }
    }
}